﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using ITM495.OOExamples.Core.Logger;

namespace ITM495.OOExamples.Core.Shapes
{
    /// <summary>
    /// Represents any shape and defines the methods that we require of all
    /// shapes
    /// </summary>
    public abstract class Shape
    {
        /// <summary>
        /// Default constructor that sets the x & y coordinates
        /// </summary>
        /// <param name="x"></param>
        /// <param name="y"></param>
        public Shape(int x, int y)
        {
            X = x;
            Y = y;
        }

        /// <summary>
        /// X Coordinate at which to draw the shape
        /// </summary>
        public int X { get; set; }

        /// <summary>
        /// Y Cooridnate at which to draw the shape
        /// </summary>
        public int Y { get; set; }


        /// <summary>
        /// Renders the current shape
        /// </summary>
        public abstract void Draw(ILogger logger);


        /// <summary>
        /// Returns the area of the curent shape
        /// </summary>
        /// <returns></returns>
        public abstract double Area();
       
    }
}
